<% content_for :title do %>Product aanpassen<% end %>
<h2>Product gegevens</h2>
<% form_for(@product, :url => {:action => 'create', :controller => 'admin/products'}) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :stock %><br />
    <%= f.text_field :stock %>
  </p>
  <p>
    <%= f.label :price %><br />
    <%= f.text_field :price %>
  </p>
  <p>
    <%= f.label :description %><br />
    <%= f.text_area :description, :cols => 70, :rows => 5, :onfocus => 'this.rows=25', :onblur => 'this.rows=5' %>
  </p>
  <p>
    <%= f.submit 'Maak' %>
  </p>
<% end %>
<%= link_to 'Terug', admin_products_path %>